/******************************************************************************
* 文件名称: syscall.c
* 内容摘要: 系统调用
* 创建者の: 孔佳伟
* 个人主页: https://gitee.com/thin-wind/jump
* 修改记录: 
******************************************************************************/

#include <syscall.h>
#include <task.h>
#include <print.h>
#include <mutex.h>
#include <event.h>
#include <keyboard.h>
#include <version.h>
#include <fs.h>

typedef U32 (*SYSCALL_FUNC)();

SYSCALL_FUNC syscall_table[] = {
    (SYSCALL_FUNC)SYS_TaskDestory,
    (SYSCALL_FUNC)SYS_print,
    (SYSCALL_FUNC)SYS_SetCursorPos,
    (SYSCALL_FUNC)SYS_MutexCreat,
    (SYSCALL_FUNC)SYS_MutexLock,
    (SYSCALL_FUNC)SYS_MutexUnLock,
    (SYSCALL_FUNC)SYS_MutexDestory,
    (SYSCALL_FUNC)SYS_MutexTryLock,
    (SYSCALL_FUNC)SYS_EventCreat,
    (SYSCALL_FUNC)SYS_WaitEvent,
    (SYSCALL_FUNC)SYS_SetEvent,
    (SYSCALL_FUNC)SYS_ClearEvent,
    (SYSCALL_FUNC)SYS_EventDestory,
    (SYSCALL_FUNC)SYS_ReadKey,
    (SYSCALL_FUNC)SYS_GetKernelVersion,
    (SYSCALL_FUNC)SYS_CreatFileInRoot,
    (SYSCALL_FUNC)SYS_DeleteFileInRoot,
    (SYSCALL_FUNC)SYS_RenameFileInRoot,
    (SYSCALL_FUNC)SYS_FileOpen,
    (SYSCALL_FUNC)SYS_FileClose,
    (SYSCALL_FUNC)SYS_FileWrite,
    (SYSCALL_FUNC)SYS_FileRead,
    (SYSCALL_FUNC)SYS_GetFileLen,
    (SYSCALL_FUNC)SYS_FileTell,
    (SYSCALL_FUNC)SYS_FileSeek,
};

